import request from '@/utils/request'

// 查询操作技能规则列表
export function listEmJngz(query) {
  return request({
    url: '/device/emJngz/list',
    method: 'get',
    params: query
  })
}

// 查询操作技能规则详细
export function getEmJngz(id) {
  return request({
    url: '/device/emJngz/' + id,
    method: 'get'
  })
}

// 新增操作技能规则
export function addEmJngz(data) {
  return request({
    url: '/device/emJngz',
    method: 'post',
    data: data
  })
}

// 修改操作技能规则
export function updateEmJngz(data) {
  return request({
    url: '/device/emJngz',
    method: 'put',
    data: data
  })
}

// 删除操作技能规则
export function delEmJngz(id) {
  return request({
    url: '/device/emJngz/' + id,
    method: 'delete'
  })
}
